/**
 * WhiMAIcpp - C++ interface for the Whiskey Media API's.
 *  Copyright (C) 2010  Anders Bugge
 *
 *  Data created and powered by:
 *  Whiskey Media	http://www.whiskeymedia.com/
 *  Giant Bomb		http://www.giantbomb.com/
 *  Comic Vine		http://www.comicvine.com/
 */

#ifndef PARSER_H_
#define PARSER_H_

#include "common.h"

// FD
namespace json
{
	class Object;
}


namespace WM
{

// FD
class Interface;

class Parser
{
protected:
	Parser();
	virtual ~Parser();

	std::string data;	///< The raw response data
	std::string url;	///< Request url
	json::Object* jObject;

	bool parseData();

private:
	Interface* interface;	///< Pointer to the API interface
};

}

#endif /* PARSER_H_ */
